Vector logic